

#ifndef CONNECTIONTABLE_H_
#define CONNECTIONTABLE_H_

#include "../Interface/OutputListener.h"
#include "../Interface/Box.h"
#include "../Engine/ResultListener.h"


class ConnectionTable : public OutputListener {

public:

	ConnectionTable();

	virtual ~ConnectionTable() { }

	void handleOutput(Outbox &outbox, double procTime);

	void registerConnection(int idConnection, ResultListener* listener);

	void removeConnection(int idConnection);

	//useless
	virtual void reset() {}
	virtual void printToFile(std::string label, char const *fileName, bool newLine, bool printLabel) {}
	virtual void printMeanProcTime(std::string label, char const *fileName, bool newLine, bool printLabel) {}

private:

	boost::unordered_map<int, ResultListener* > connectionToListenerMap;

};



#endif /* CONNECTIONTABLE_H_ */
